﻿/* ==========================================================================
   Ligat Ha'al - Master Page (The "Invisible" Master) - FULL UPDATED VERSION
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Assistant:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@400;700;800&display=swap');

:root {
    --accent-gold: #d4af37;
    --accent-gold-hover: #f1c40f;
    --accent-green: #00ff41;
}

/* הגדרות יסוד */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    direction: rtl;
}

body {
    font-family: 'Assistant', sans-serif;
    background-image: url('../../images/background.png') !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-position: center !important;
    background-color: #0f1012;
    color: white;
}

form#form1 {
    background: transparent !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- סרגל ניווט שקוף --- */
nav {
    background: transparent !important;
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1000;
}

/* --- בועת המשתמש ותיקון התפריט הנפתח --- */
.user-menu-container {
    position: absolute;
    right: 30px;
    width: auto;
    min-width: 140px;
}

.user-bubble {
    font-family: 'Assistant', sans-serif;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #8a6d3b 100%);
    color: #000;
    padding: 10px 15px;
    width: 100%;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    display: block;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
}

    .user-bubble:hover {
        transform: scale(1.02);
        box-shadow: 0 0 20px var(--accent-gold);
    }

/* --- תפריט נפתח עם גשר ריחוף שקוף --- */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    /* יוצר אזור מגע שקוף שסוגר את הרווח אבל מונע מהעכבר לאבד את הריחוף */
    padding-top: 12px;
    margin-top: -4px;
    background: transparent;
    z-index: 1001;
    animation: fadeInSlide 0.3s ease;
}

/* העטיפה הפנימית שמכילה את הרקע, הצללית והעיצוב של התפריט */
.dropdown-inner {
    background: rgba(15, 16, 18, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* הריחוף נשאר פעיל על כל הקונטיינר כולל אזור הגשר השקוף */
.user-menu-container:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: white;
    padding: 12px 10px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: 0.3s;
}

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background: var(--accent-gold);
        color: black;
    }

/* --- כפתורי ניווט מעוצבים --- */
.nav-links {
    display: flex;
    gap: 15px;
}

    .nav-links a {
        font-family: 'Assistant', sans-serif;
        padding: 10px 25px;
        background: rgba(0, 0, 0, 0.4);
        color: white;
        text-decoration: none !important;
        border: 1px solid var(--accent-gold);
        border-radius: 50px;
        font-weight: bold;
        transition: 0.3s;
    }

        .nav-links a:hover {
            background: var(--accent-gold);
            color: black;
            box-shadow: 0 0 15px var(--accent-gold);
        }

/* --- תוכן --- */
.content-area {
    flex: 1;
    background: transparent !important;
}

footer, .footer {
    margin-top: auto !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-right: -50vw !important;
    margin-left: -50vw !important;
    background: rgba(0, 0, 0, 0.9) !important;
    padding: 25px 0 !important;
    text-align: center !important;
    color: var(--accent-gold) !important;
    font-family: 'Assistant', sans-serif !important;
    font-weight: 900 !important;
    font-size: 15px !important;
    letter-spacing: 1px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
    box-sizing: border-box !important;
}

/* אנימציה לפתיחת התפריט */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
